package test01.demo02;

/**
 * @author ZQX
 * @date 2025-04-09
 */
public class Student {
    // 姓名
    private String name;

    // 等级：必须只能是 A B C D E 五种级别
    private Grade grade;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Grade getGrade() {
        return grade;
    }

    public void setGrade(Grade grade) {
        this.grade = grade;
    }

    @Override
    public String toString() {
        return "姓名：" + this.name + ",等级：" + this.grade;
    }
}
